﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Ducu.GLB.Global
{
    public static class AcceptTemplate
    {
        public static readonly string Accept = " 验收了 ";
        public static readonly string Refuse = " 拒绝验收 ";
        public static readonly string Question = " 质疑 ";
        public static readonly string Reply = " 回复了 ";

        public static string MakeLink(string senderId, string senderName, 
            string action, 
            string planId, string planName,
            string comment)
        {
            string content = UserTemplate.MakeLink(senderName, senderId)
                + action
                + PlanTemplate.MakeLink(planName, planId);

            if (!string.IsNullOrEmpty(comment))
            {
                content += "<br />";
                content += "<span>留言：</span>";
                content += comment;
            }

            return content;
        }
    }
}
